<template>
	<!-- <view>
		<text v-text="id" ></text>
		<text v-text="url"></text>
	</view> -->
	<view class="content">
		<image :src="item.img1"></image>
		<text class="title" v-text="item.title"></text>
		<text>检索时间：{{item.time}}</text>
		<text>信息来源：{{item.resource}}</text>
		<text>租赁方式：{{item.rentType}}</text>	<text>价格：{{item.price}}</text>	<text>位置：{{item.location}}</text>
		
		<text>小区:{{item.address}}</text> 		<text>面积：{{item.area}}</text>		<text>楼层：{{item.floor}}</text>
		
		<text>评价：{{item.appraise}}</text>
		
		<button @click="openWeb()">点击进入租房链接</button>
	</view>
</template>

<script>
	let _that;
	export default {
		data() {
			return {
				item:''
			}
		},
		created() {
			_that=this;
		},
		onLoad: function(e){
			console.log(e);
			//api，selectById
			uni.request({
				method:'GET',
				url:getApp().globalData.service_url+'/rent-house/selectById?id='+e.id,
				success(e) {
					_that.item=e.data.data;
				}
			})
		},
		methods: {
			openWeb:function(e){
				uni.navigateTo({
					url:"../web/web?url="+this.item.url
				})
			}
		}
	}
</script>

<style>
	.tips{
		z-index: 100;
	}
</style>
